package com.achievement.service;

import com.achievement.domain.dto.honor.HonorAuthorDTO;
import com.achievement.domain.entity.HonorAuthorEntity;
import com.achievement.domain.vo.honor.HonorAuthorVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface IHonorAuthorService extends IService<HonorAuthorEntity> {


    /**
     * 根据成果id查询所有完成人
     * @param honorId
     * @return
     */
    List<HonorAuthorVO> honorAuthorListByHonorId(String honorId);
    HonorAuthorVO getInfoById(String id);
    List<HonorAuthorEntity> getListByConditions(HonorAuthorDTO honorAuthorDTO);
    /**
     * 批量插入
     * @param
     * @return
     */
    boolean bitchAdd(List<HonorAuthorDTO> honorAuthorDTOs,String honorId);
    boolean add(HonorAuthorDTO dto);

    boolean update(HonorAuthorDTO dto);
    /**
     * 批量移除
     * @param
     * @return
     */
    boolean batchRemove(List<String> ids);

    /**
     * 根据honorId删除所有完成人信息
     * @param honorId
     * @return
     */
    int deleteAuthorListByHonorId(String honorId);
}
